|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.CounterSnapshotModel
public class CounterSnapshotModel
This class represents a daily counter snapshot; Inside the snapshot, the counters are organized in a structure
similar to the associated subscription (root subscription, sub-subscription(s),
charge activation(s)).
A snapshot contains the following information:
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="counterSnapshot">
<xs:complexType>
<xs:sequence>
<xs:element ref="subscriptionSnapshotHolder" minOccurs="0" maxOccurs="1" />
</xs:sequence>
<xs:attribute name="date" type="xs:date" />
<xs:attribute name="numberOfDaysInThePast" type="xs:int" />
<xs:attribute name="minimalTransactionSetId" type="xs:long" />
<xs:attribute name="inError" type="xs:boolean" />
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
MODEL_NAME
The XML name of the object: counterSnapshot |
| Constructor Summary | |
|---|---|
CounterSnapshotModel()
Builds an empty CounterSnapshotModel object |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
int |
compareTo(CounterSnapshotModel that)
Compare this counter snapshot with the one specified in argument, using their date |
java.util.Date |
getDate()
Gets the date of the counter snapshot |
long |
getMinimalTransactionSetId()
Gets the lowest transaction set identifier which was generated by a rating performed on the counter snapshot |
int |
getNumberOfDaysInThePast()
Gets the maximum number of days in the past for the counter snapshot (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot). |
SubscriptionSnapshotHolderModel |
getRootSubscription()
Gets the subscription snapshot holder corresponding to the root
subscription |
boolean |
isInError()
Gets whether the counter snapshot is erroneous |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setDate(java.util.Date date)
Sets the date of the counter snapshot |
void |
setInError(boolean inError)
Sets whether the counter snapshot is erroneous |
void |
setMinimalTransactionSetId(long minimalTransactionSetId)
Sets the lowest transaction set identifier which was generated by a rating performed on the counter snapshot |
void |
setNumberOfDaysInThePast(int numberOfDaysInThePast)
Sets the maximum number of days in the past for the counter snapshot (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot). |
void |
setRootSubscription(SubscriptionSnapshotHolderModel rootSubscription)
Sets the subscription snapshot holder corresponding to the root
subscription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MODEL_NAME
| Constructor Detail |
|---|
public CounterSnapshotModel()
CounterSnapshotModel object
| Method Detail |
|---|
public java.util.Date getDate()
public void setDate(java.util.Date date)
date - The date of the counter snapshotpublic int getNumberOfDaysInThePast()
public void setNumberOfDaysInThePast(int numberOfDaysInThePast)
numberOfDaysInThePast - the maximum number of days in the past for the counter snapshotpublic long getMinimalTransactionSetId()
public void setMinimalTransactionSetId(long minimalTransactionSetId)
minimalTransactionSetId - The lowest transaction set identifier which was generated by a rating performed on the counter snapshotpublic boolean isInError()
true if the counter snapshot is erroneous, false otherwisepublic void setInError(boolean inError)
inError - true if the counter snapshot is erroneous, false otherwisepublic SubscriptionSnapshotHolderModel getRootSubscription()
subscription snapshot holder corresponding to the root
subscription
subscription snapshot holder corresponding to the root
subscriptionpublic void setRootSubscription(SubscriptionSnapshotHolderModel rootSubscription)
subscription snapshot holder corresponding to the root
subscription
rootSubscription - The subscription snapshot holder corresponding to the root
subscriptionpublic int compareTo(CounterSnapshotModel that)
date
compareTo in interface java.lang.Comparable<CounterSnapshotModel>public void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||